package com.zy.ipanalysis.service;

import com.zy.ipanalysis.dao.DistrictDao;
import com.zy.ipanalysis.model.District;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by ZYDR on 2015/12/26.
 */
@Service
public class DistrictService {
    @Autowired
    DistrictDao districtDao;
    public void insert(District district){
        districtDao.insert(district);
    }
    public int count(){
        return  districtDao.count();
    }
}
